@model IEnumerable<User.Models.MattersModels>
@{
    ViewData["Title"] = "UpcomingOverTime";
}
<link href="~/css/MatterCSS/UpcomingMatters.css" rel="stylesheet" />
<div class="upcomingMatter">
    <div class="allUpcomingMatters">
        <table>
            <tr>
                <th><h3>事项</h3></th>
                <th><h3>备注</h3></th>
                <th><h3>过期时间</h3></th>
                <th><h3>完成事项</h3></th>
            </tr>
            @foreach (var item in Model)
            {
                <tr>

                    @if (item.OverTime <= DateTime.Now.AddDays(1))
                    {
                        <th><h4 style="color:red;">@item.MatterContent</h4></th>
                        <th><h4 style="color:red;">@item.Remark</h4></th>
                        <th><h4 style="color:red;">@item.OverTime.Value.ToString("yyyy-MM-dd")</h4></th>  
                        <th><a href="/Type/CompletMatter?matterId=@item.MatterId"><img src="~/css/完成事项.png" /></a></th>
                    }
                   @if (item.OverTime > DateTime.Now.AddDays(1)&&item.OverTime <= DateTime.Now.AddDays(2))
                    {
                        <th><h4 style="color:#FF8C00;">@item.MatterContent</h4></th>
                        <th><h4 style="color:#FF8C00;">@item.Remark</h4></th>
                        <th><h4 style="color:#FF8C00;">@item.OverTime.Value.ToString("yyyy-MM-dd")</h4></th>
                        <th><a href="/Type/CompletMatter?matterId=@item.MatterId"><img src="~/css/完成事项.png" /></a></th>
                    }
                   @if (item.OverTime > DateTime.Now.AddDays(2) && item.OverTime <= DateTime.Now.AddDays(3))
                   {
                        <th><h4>@item.MatterContent</h4></th>
                        <th><h4>@item.Remark</h4></th>
                        <th><h4>@item.OverTime.Value.ToString("yyyy-MM-dd")</h4></th>
                        <th><a href="/Type/CompletMatter?matterId=@item.MatterId"><img src="~/css/完成事项.png" /></a></th>
                     }
                </tr>
            }
        </table>
    </div>
    @*<div><a href="/Type/AddType"><h5>返回</h5></a></div>*@
</div>
